package com.xxx.article.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @author blijojo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("comment")
public class Comment implements Serializable {
    @Id
    @Field("_id")
    private String id;

    @Field("articleid")
    private String articleId;

    private String content;
    @Field("userid")
    private String userId;

    @Field("parentid")
    private String parentId;

    @Field("publishdate")
    private Date publishDate;

    @Field("thumbup")
    private Integer thumbUp;
}